package designMode.composite;

/**
 * @Description 根节点 抽象类 通用的属性和方法
 * @Author 肖地洋
 * @Date 2022/8/18 16:25
 */
public abstract class Root {
    private String name;
    public Root(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public abstract void addFile(Root root);
    public abstract void removeFile(Root root);
    public abstract void display(int depth);
}
